package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 返利记录表对象 rebate
 * 
 * @author ruoyi
 * @date 2024-12-23
 */
public class Rebate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 返利id */
    private Long id;

    /** 返利时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "返利时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 服务名称 */
    @Excel(name = "服务名称")
    private String name;

    /** 服务价格 */
    @Excel(name = "服务价格")
    private BigDecimal price;

    /** 购买人 */
    @Excel(name = "购买人")
    private String purchaser;

    /** 返利比率 */
    @Excel(name = "返利比率")
    private String rebateBi;

    /** 返利金额 */
    @Excel(name = "返利金额")
    private BigDecimal amount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setPurchaser(String purchaser) 
    {
        this.purchaser = purchaser;
    }

    public String getPurchaser() 
    {
        return purchaser;
    }
    public void setRebateBi(String rebateBi) 
    {
        this.rebateBi = rebateBi;
    }

    public String getRebateBi() 
    {
        return rebateBi;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("time", getTime())
            .append("name", getName())
            .append("price", getPrice())
            .append("purchaser", getPurchaser())
            .append("rebateBi", getRebateBi())
            .append("amount", getAmount())
            .append("remark", getRemark())
            .toString();
    }
}
